package com.chx.three.mama.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Hainuo on 2015/3/23.
 */
public class ActionList {
    //奖品图片
    private String pic;
    //奖品数量
    private String prizeNum;
    //奖品发放距离结束的时间
    private String outTime;
    //活动网址
    private String url;

    public void parseJson(JSONObject object){
        try {
            pic = object.getString("pic");
            prizeNum = object.getString("prize_num");
            outTime = object.getString("time_str");
            url = object.getString("url");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }



    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getPrizeNum() {
        return prizeNum;
    }

    public void setPrizeNum(String prizeNum) {
        this.prizeNum = prizeNum;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
